﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="/Content/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui-1.8.11.js" type="text/javascript"></script>
    @*<link href="/Content/themes/base/jquery.ui.all.css" type="text/css" rel="Stylesheet" />
    <link href="/Content/themes/base/jquery.ui.dialog.css" type="text/css" rel="Stylesheet" />*@
    <link href="/Content/themes/ui-lightness/jquery.ui.all.css" type="text/css" rel="Stylesheet" />
    <style type="text/css">
        #divLoadingProgress
        {
            display:none;
            position:fixed;
            left:50%;
            top:50%;
            z-index:100; 
            margin-left:-43px;
            margin-top:-43px;           
        }
        #divBlockingContainer
        {
            display:none;
            position:absolute;
            left:0px;
            top:0px;
            z-index:101; 
            background-color:#333333;
            filter:Alpha(opacity=50);
            opacity: 0.5;
        }
        div.button a:link, div.button a:visited
        {
            background-color:#CCCCCC;
            padding:5px 10px;
            color:#333333;
            border:#EFEFEF 1px solid;
            text-decoration:none;
            
        }
        .jQuery-ui-dialog-shadow
        {
            -moz-box-shadow: 4px 4px 4px #888888;
            -webkit-box-shadow: 4px 4px 4px #888888;
            box-shadow: 4px 4px 4px #888888;
        }
        .div-list-item 
        {            
            border-bottom:#CCCCCC 1px solid;
            padding:15px 0px;
            background-image:url(/Content/Images/loading.gif);
            background-repeat:no-repeat;
            background-position:right;            
        }
    </style>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            //            $('form').bind('submit', function(){ //.submit(function () {
            //                $('#divLoadingProgress').show();
            //                $('#divBlockingContainer').width($(document).width()).height($(document).height()).show();
            //                return false;
            //            });            
        });
        function test() {
            var array = [{ "total_rows": "2", "start_ts": "08/02/2012", "rundown_title": "Standard Test", "agl_editable": "1", "rows":
            [["001001002", "1100120802092748641/1100120802092749142/1100120802092749243/1100120802092749444", " ", "1",
            { "color": "80FFFF", "value": "F", "type": "string" }, { "value": "1", "type": "string" },
            { "tooltip": "'<table> <tr style=&quot;text-align: top&quot;> <td valign=&quot;top&quot;><IMG border=&quot;0&quot; height=&quot;90&quot; src=&quot;http://dev-be-dhk-storage:8080/getIMG?file=be0kf/2012/06/08/1100120608092423406/0/IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234&frame=FIRST&quot; /></td> <td valign=&quot;top&quot;>Lorem Ipsum is simply</td> </tr> </table>'",
                "image_height": "24", "url": "http://dev-be-dhk-storage:8080/getIMG?file=be0kf/2012/06/08/1100120608092423406/0/IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234&frame=0", "type": "image", "image_width": "32"
            },
            { "tooltip": "", "link": "https://dev-be-dhk-app-web:443/ardome/op=info/id=1100120608092423406", "value": "VMP Test Without IP Validation", "wrap": "1", "type": "string" },
            { "fields": [{ "url": "/gui/browse.gif", "type": "image" }, { "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_edlp/mog_id=1100120608092423406/itm_id=1100120608092423221/IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234.edlp", "value": "IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234", "type": "string"}], "type": "composite" },
            { "tooltip": "'<TABLE class=&quot;cg&quot;></TABLE>'", "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_acg/xpath=1100120802092748641:1100120802092749142:1100120802092749243:1100120802092749444/1100120802092749444.acg", "url": "/gui/rdn_pretime_star.gif", "type": "image" },
            { "type": "hidden" }, { "type": "string" },
            { "tooltip": "'<TABLE><TR></TR></TABLE>'", "image_height": "24", "url": [], "type": "image", "image_width": "32" },
            { "url": [], "type": "image" }, { "value": "00:00:31;01", "type": "string" }, { "value": "", "type": "string" },
            { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749444'); return false;" },
            { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749243'); return false;"}], ["003001002", "1100120802092748641/1100120802092749542/1100120802092749643/1100120802092749844", " ", "1", { "color": "55AAFF", "value": "G", "type": "string" },
            { "value": "2", "type": "string" }, { "tooltip": "'<table> <tr style=&quot;text-align: top&quot;> <td valign=&quot;top&quot;><IMG border=&quot;0&quot; height=&quot;90&quot; src=&quot;http://dev-be-dhk-storage:8080/getIMG?file=be0kf/2012/06/07/1100120607092418706/0/IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187&frame=FIRST&quot; /></td> <td valign=&quot;top&quot;>Lorem Ipsum is simply</td> </tr> </table>'",
                "image_height": "24", "url": "http://dev-be-dhk-storage:8080/getIMG?file=be0kf/2012/06/07/1100120607092418706/0/IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187&frame=0", "type": "image", "image_width": "32"
            },
            { "tooltip": "", "link": "https://dev-be-dhk-app-web:443/ardome/op=info/id=1100120607092418706", "value": "VMP Test 200", "wrap": "1", "type": "string" }, { "fields": [{ "url": "/gui/browse.gif", "type": "image" }, { "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_edlp/mog_id=1100120607092418706/itm_id=1100120607092416021/IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187.edlp", "value": "IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187", "type": "string"}], "type": "composite" },
            { "tooltip": "'<TABLE class=&quot;cg&quot;></TABLE>'", "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_acg/xpath=1100120802092748641:1100120802092749542:1100120802092749643:1100120802092749844/1100120802092749844.acg", "url": "/gui/rdn_pretime_star.gif", "type": "image" }, { "type": "hidden" }, { "type": "string" }, { "tooltip": "'<TABLE><TR></TR></TABLE>'", "image_height": "24", "url": [], "type": "image", "image_width": "32" }, { "url": [], "type": "image" }, { "value": "00:00:53:21", "type": "string" }, { "value": "", "type": "string" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749844'); return false;" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749643'); return false;"}]], "update_ts": "2012-08-02 13:07:47.539180", "stop_ts": "08/30/2012", "last_batch": "1", "batchid": "1100120802092748641_1343890988360", "title": " Rundown - Standard Test - 2012-08-02 12:00:00", "related_items": [], "buttons": { "category_order": ["perform", "view", "post", "request", "manage", "remove", "rdnelem", "download", "mselect", "create", "upload"], "category": { "request": { "title": "Request", "list": [] }, "create": { "title": "Create", "list": [] }, "remove": { "title": "Remove", "list": [] }, "perform": { "title": "Perform", "list": [{ "priority": "100", "elemid": "rdn_action_reload_rundown", "locked": null, "alt": "Reload", "name": "reload", "oneclick": "1", "image": "/image/button/en/reload.gif", "url": "/ardome/#", "onclick": "reloadRundown()" }, { "priority": "100", "elemid": "rdn_action_invoke_ardlog_stories", "locked": null, "alt": "Log Stories", "name": "ardlogstories", "oneclick": "1", "image": "/image/button/en/ardlogstories.gif", "url": "/ardome/#", "onclick": "invokeArdlogStories()" }, { "priority": "100", "elemid": "rdn_action_delete_rundown", "locked": null, "alt": "Delete", "name": "remove", "oneclick": "1", "image": "/image/button/en/remove.gif", "confirm": "Are you sure you want to delete selected Rundown/Project?", "url": "op=rundown-delete/id=1100120802092748641/rdn_type=R/rdn_subtype=//date=2012-08-02"}] }, "post": { "title": "Submit to", "list": [] }, "mselect": { "title": "On Selected", "list": [{ "priority": "100", "elemid": "rdn_action_invoke_precut", "locked": null, "alt": "Precut", "name": "precut", "oneclick": "1", "image": "/image/button/en/precut.gif", "url": "/ardome/#", "onclick": "multiInvoke('precut', 'edlp')" }, { "priority": "100", "elemid": "rdn_action_copy_media", "locked": null, "alt": "Add to cart", "name": "addtocart", "oneclick": "1", "image": "/image/button/en/addtocart.gif", "url": "/ardome/#", "onclick": "addMediaToTray()" }, { "priority": "100", "elemid": "rdn_action_invoke_easycut", "locked": null, "alt": "Easycut", "name": "proxyedit", "oneclick": "1", "image": "/image/button/en/proxyedit.gif", "url": "/ardome/#", "onclick": "multiInvoke('easycut', 'edl')" }, { "priority": "100", "elemid": "rdn_action_delete_elements", "locked": null, "alt": "Delete", "name": "remove", "oneclick": "1", "image": "/image/button/en/remove.gif", "confirm": "Are you sure you want to delete selected elements?", "url": "/ardome/#", "onclick": "deleteElements()"}] }, "rdnelem": { "title": "Element", "list": [] }, "view": { "title": "View", "list": [] }, "upload": { "title": "Upload", "list": [] }, "manage": { "title": "Manage", "list": [] }, "download": { "title": "Download", "list": []}} }, "header": [{ "value": "2012-08-02 12:00:00", "type": "string", "label": "Start" }, { "value": "2012-08-30 12:00:00", "type": "string", "label": "Stop" }, { "value": "2012-08-02 12:53:01", "type": "string", "label": "Created" }, { "value": "ardendo", "type": "string", "label": "Owner" }, { "fields": [{ "value": "A3QAZNR2-STANDARDTEST", "type": "string" }, { "link": "https://dev-be-dhk-app-web:443/ardome/op=acledit/id=1100120802092748641", "url": "/gui/keys.gif", "type": "image"}], "type": "composite", "label": "Id" }, { "fields": [{ "value": "1100120802092748641", "type": "string" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092748641'); return false;"}], "type": "composite", "label": "Ardome Id"}]
        }];
            alert('Objects Created Successfully' + array.length);
        }

        [{ "total_rows": "2", "start_ts": "08/02/2012", "rundown_title": "Standard Test", "agl_editable": "1", "rows": [["001001002", "1100120802092748641/1100120802092749142/1100120802092749243/1100120802092749444", " ", "1", { "color": "80FFFF", "value": "F", "type": "string" }, { "value": "1", "type": "string" }, { "tooltip": "Tutul Test Tooltip.", "image_height": "24", "url": "http://dev-be-dhk-storage:8080/getIMG?file=be0kf/2012/06/08/1100120608092423406/0/IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234&frame=0", "type": "image", "image_width": "32" }, { "tooltip": "", "link": "https://dev-be-dhk-app-web:443/ardome/op=info/id=1100120608092423406", "value": "VMP Test Without IP Validation", "wrap": "1", "type": "string" }, { "fields": [{ "url": "/gui/browse.gif", "type": "image" }, { "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_edlp/mog_id=1100120608092423406/itm_id=1100120608092423221/IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234.edlp", "value": "IN_A2T88ND4-XDCAMHD1080I59948CH16BITMXF_0924234", "type": "string"}], "type": "composite" }, { "tooltip": "Tutul Test Tooltip.", "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_acg/xpath=1100120802092748641:1100120802092749142:1100120802092749243:1100120802092749444/1100120802092749444.acg", "url": "/gui/rdn_pretime_star.gif", "type": "image" }, { "type": "hidden" }, { "type": "string" }, { "tooltip": "Tutul Test Tooltip.", "image_height": "24", "url": [], "type": "image", "image_width": "32" }, { "url": [], "type": "image" }, { "value": "00:00:31;01", "type": "string" }, { "value": "", "type": "string" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749444'); return false;" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749243'); return false;"}], ["003001002", "1100120802092748641/1100120802092749542/1100120802092749643/1100120802092749844", " ", "1", { "color": "55AAFF", "value": "G", "type": "string" }, { "value": "2", "type": "string" }, { "tooltip": "Tutul Test Tooltip.", "image_height": "24", "url": "http://dev-be-dhk-storage:8080/getIMG?file=be0kf/2012/06/07/1100120607092418706/0/IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187&frame=0", "type": "image", "image_width": "32" }, { "tooltip": "", "link": "https://dev-be-dhk-app-web:443/ardome/op=info/id=1100120607092418706", "value": "VMP Test 200", "wrap": "1", "type": "string" }, { "fields": [{ "url": "/gui/browse.gif", "type": "image" }, { "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_edlp/mog_id=1100120607092418706/itm_id=1100120607092416021/IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187.edlp", "value": "IN_A2T88NB4-XDCAMHD1080I508CH24BITNEXIO-0MXF_0924187", "type": "string"}], "type": "composite" }, { "tooltip": "Tutul Test Tooltip.", "link": "https://dev-be-dhk-app-web:443/ardome/op=invoke_acg/xpath=1100120802092748641:1100120802092749542:1100120802092749643:1100120802092749844/1100120802092749844.acg", "url": "/gui/rdn_pretime_star.gif", "type": "image" }, { "type": "hidden" }, { "type": "string" }, { "tooltip": "Tutul Test Tooltip.", "image_height": "24", "url": [], "type": "image", "image_width": "32" }, { "url": [], "type": "image" }, { "value": "00:00:53:21", "type": "string" }, { "value": "", "type": "string" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749844'); return false;" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092749643'); return false;"}]], "update_ts": "2012-08-02 16:00:51.555880", "last_batch": "1", "stop_ts": "08/30/2012", "batchid": "1100120802092748641_1343901373788", "title": " Rundown - Standard Test - 2012-08-02 12:00:00", "related_items": [], "buttons": { "category_order": ["perform", "view", "post", "request", "manage", "remove", "rdnelem", "download", "mselect", "create", "upload"], "category": { "request": { "title": "Request", "list": [] }, "create": { "title": "Create", "list": [] }, "remove": { "title": "Remove", "list": [] }, "perform": { "title": "Perform", "list": [{ "priority": "100", "elemid": "rdn_action_reload_rundown", "locked": null, "alt": "Reload", "name": "reload", "oneclick": "1", "image": "/image/button/en/reload.gif", "url": "/ardome/#", "onclick": "reloadRundown()" }, { "priority": "100", "elemid": "rdn_action_invoke_ardlog_stories", "locked": null, "alt": "Log Stories", "name": "ardlogstories", "oneclick": "1", "image": "/image/button/en/ardlogstories.gif", "url": "/ardome/#", "onclick": "invokeArdlogStories()" }, { "priority": "100", "elemid": "rdn_action_delete_rundown", "locked": null, "alt": "Delete", "name": "remove", "oneclick": "1", "image": "/image/button/en/remove.gif", "confirm": "Are you sure you want to delete selected Rundown/Project?", "url": "op=rundown-delete/id=1100120802092748641/rdn_type=R/rdn_subtype=//date=2012-08-02"}] }, "post": { "title": "Submit to", "list": [] }, "mselect": { "title": "On Selected", "list": [{ "priority": "100", "elemid": "rdn_action_invoke_precut", "locked": null, "alt": "Precut", "name": "precut", "oneclick": "1", "image": "/image/button/en/precut.gif", "url": "/ardome/#", "onclick": "multiInvoke('precut', 'edlp')" }, { "priority": "100", "elemid": "rdn_action_copy_media", "locked": null, "alt": "Add to cart", "name": "addtocart", "oneclick": "1", "image": "/image/button/en/addtocart.gif", "url": "/ardome/#", "onclick": "addMediaToTray()" }, { "priority": "100", "elemid": "rdn_action_invoke_easycut", "locked": null, "alt": "Easycut", "name": "proxyedit", "oneclick": "1", "image": "/image/button/en/proxyedit.gif", "url": "/ardome/#", "onclick": "multiInvoke('easycut', 'edl')" }, { "priority": "100", "elemid": "rdn_action_delete_elements", "locked": null, "alt": "Delete", "name": "remove", "oneclick": "1", "image": "/image/button/en/remove.gif", "confirm": "Are you sure you want to delete selected elements?", "url": "/ardome/#", "onclick": "deleteElements()"}] }, "rdnelem": { "title": "Element", "list": [] }, "view": { "title": "View", "list": [] }, "upload": { "title": "Upload", "list": [] }, "manage": { "title": "Manage", "list": [] }, "download": { "title": "Download", "list": []}} }, "header": [{ "value": "2012-08-02 12:00:00", "type": "string", "label": "Start" }, { "value": "2012-08-30 12:00:00", "type": "string", "label": "Stop" }, { "value": "2012-08-02 12:53:01", "type": "string", "label": "Created" }, { "value": "ardendo", "type": "string", "label": "Owner" }, { "fields": [{ "value": "A3QAZNR2-STANDARDTEST", "type": "string" }, { "link": "https://dev-be-dhk-app-web:443/ardome/op=acledit/id=1100120802092748641", "url": "/gui/keys.gif", "type": "image"}], "type": "composite", "label": "Id" }, { "fields": [{ "value": "1100120802092748641", "type": "string" }, { "url": "/gui/debug.gif", "type": "image", "onclick": "debugWindow('1100120802092748641'); return false;"}], "type": "composite", "label": "Ardome Id"}]}]
    </script>
</head>
<body>    
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>My Test Application</h1>
                <div class="button">
                    <a href="/product/filter/1">Filters</a>
                </div>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    <li><a href="javascript:void(0);" onclick="test();">Test JS</a></li>
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()            

            <a href="http://www.yahoo.com/">
                <div class="div-list-item">
                    <div>Funny This 1</div>
                    <div></div>
                    <div></div>
                </div>
            </a>
            <a href="http://www.yahoo.com/">
                <div class="div-list-item">
                    <div>Funny This 2</div>
                    <div></div>
                    <div></div>
                </div>
            </a>
        </div>
        <div id="footer"></div>
    </div>

    <input id="btnDialog" type="button" value="Show Dialog" onclick="ShowMyDialog();" style="cursor:pointer;" />
    <script language="javascript" type="text/javascript">
        var _Dialog = null;
        $(document).ready(function () {
            //Initialize the Dialog object into a Global Variable for re-use.
            _Dialog = $('#divDialog').dialog({ title: "Confirm", autoOpen: false, modal: true, 
                buttons: 
                    [   //As Array of Button Objects
                        { text: 'Save', click: function () { } },
                        { text: 'Cancel', click: function () { $(this).dialog('close'); } } 
                    ],
                    ///As a Single Button Object
                    //{'Close':function(){$(this).dialog('close');}},
                width: 500,
                dialogClass: 'jQuery-ui-dialog-shadow',
                resizable: false
            });
        });
        function ShowMyDialog() {            
            $(_Dialog).dialog('open');
        }
    </script>
    <div id="divDialog">
        Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the 
        industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.
    </div>

    <div id="divLoadingProgress"><img src="/Content/Images/loading.gif" alt="Loading" title="Loading" /></div>
    <div id="divBlockingContainer"></div>
</body>
</html>
